﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
 <!--  start message-blue -->
                                <% if (Session["message"] != null && Session["messageType"] != null)
                                   {
                                  %>
                                    
                                <script type="text/javascript">
                                    $(document).ready(function() {
                                        var typemessage = '<%=Session["messageType"].ToString()%>';
                                         if (typemessage == "Notice") {
                                            jNotify(
		                                    '<div class="msgnotify"><b><%=Session["message"]%></b></div>',
		                                    {
		                                        autoHide: true, // added in v2.0
		                                        clickOverlay: false, // added in v2.0
		                                        MinWidth: 250,
		                                        TimeShown: 3000,
		                                        ShowTimeEffect: 400,
		                                        HideTimeEffect: 400,
		                                        LongTrip: 20,
		                                        HorizontalPosition: 'center',
		                                        VerticalPosition: 'top',
		                                        ShowOverlay: true,
		                                        ColorOverlay: '#000',
		                                        OpacityOverlay: 0.3
		                                    });
                                         }
                                         //
                                         if (typemessage == "Error") {
                                             jError(
		                                    '<div class="msgnotify"><b><%=Session["message"]%></b></div>',
		                                    { autoHide: true, // added in v2.0
		                                        HorizontalPosition: 'right',
		                                        VerticalPosition: 'bottom'
		                                    });  
                                         } 
                                         //
                                         if (typemessage == "Success")
                                         {
                                            jSuccess(
		                                    '<div class="msgnotify"><b><%=Session["message"]%></b></div>',
		                                    { autoHide: true, // added in v2.0
		                                        HorizontalPosition: 'center',
		                                        VerticalPosition: 'top'
		                                    });   
                                         }
                                        
                                     
                                     
                                      });</script>

                                <% Session["message"] = null; Session["messageType"] = null;
                        }   %>
                                <!--  end message-blue -->
